# !/bin/bash

function build_and_run_test() {
    if [ -d build ]; then
        rm -r build
    fi

    mkdir build
    cd build
    cmake ../test -DCMAKE_CXX_STANDARD=$1
    make
    ./test_to_chars
    cd ..
    rm -r build
}

build_and_run_test 11
build_and_run_test 14
build_and_run_test 17
build_and_run_test 20